package com.ruoyi.orders.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单列表对象 orders
 * 
 * @author wangyuhang
 * @date 2025-08-17
 */
public class Orders extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 订单号 */
    private Long orderId;

    /** 服务名称 */
    @Excel(name = "服务名称")
    private String serviceName;

    /** 车辆级别 */
    @Excel(name = "车辆级别")
    private String vehicleLevel;

    /** 上车地址 */
    @Excel(name = "上车地址")
    private String startAddress;

    /** 下车地址 */
    @Excel(name = "下车地址")
    private String endAddress;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

    /** 订单金额(元) */
    @Excel(name = "订单金额(元)")
    private BigDecimal orderAmount;

    /** 服务时长(分钟) */
    @Excel(name = "服务时长(分钟)")
    private Long serviceDuration;

    /** 服务里程(公里) */
    @Excel(name = "服务里程(公里)")
    private BigDecimal serviceMileage;

    /** 支付模式 */
    @Excel(name = "支付模式")
    private String paymentMethod;

    /** 订车人ID */
    @Excel(name = "订车人ID")
    private String bookingUserId;

    /** 用车人ID */
    @Excel(name = "用车人ID")
    private String passengerUserId;

    /** 司机ID */
    @Excel(name = "司机ID")
    private String driverId;

    /** 下单来源 */
    @Excel(name = "下单来源")
    private String orderSource;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 用车时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "用车时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date useTime;

    /** 支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "支付时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date paymentTime;

    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    public void setServiceName(String serviceName) 
    {
        this.serviceName = serviceName;
    }

    public String getServiceName() 
    {
        return serviceName;
    }

    public void setVehicleLevel(String vehicleLevel) 
    {
        this.vehicleLevel = vehicleLevel;
    }

    public String getVehicleLevel() 
    {
        return vehicleLevel;
    }

    public void setStartAddress(String startAddress) 
    {
        this.startAddress = startAddress;
    }

    public String getStartAddress() 
    {
        return startAddress;
    }

    public void setEndAddress(String endAddress) 
    {
        this.endAddress = endAddress;
    }

    public String getEndAddress() 
    {
        return endAddress;
    }

    public void setOrderStatus(String orderStatus) 
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus() 
    {
        return orderStatus;
    }

    public void setOrderAmount(BigDecimal orderAmount) 
    {
        this.orderAmount = orderAmount;
    }

    public BigDecimal getOrderAmount() 
    {
        return orderAmount;
    }

    public void setServiceDuration(Long serviceDuration) 
    {
        this.serviceDuration = serviceDuration;
    }

    public Long getServiceDuration() 
    {
        return serviceDuration;
    }

    public void setServiceMileage(BigDecimal serviceMileage) 
    {
        this.serviceMileage = serviceMileage;
    }

    public BigDecimal getServiceMileage() 
    {
        return serviceMileage;
    }

    public void setPaymentMethod(String paymentMethod) 
    {
        this.paymentMethod = paymentMethod;
    }

    public String getPaymentMethod() 
    {
        return paymentMethod;
    }

    public void setBookingUserId(String bookingUserId) 
    {
        this.bookingUserId = bookingUserId;
    }

    public String getBookingUserId() 
    {
        return bookingUserId;
    }

    public void setPassengerUserId(String passengerUserId) 
    {
        this.passengerUserId = passengerUserId;
    }

    public String getPassengerUserId() 
    {
        return passengerUserId;
    }

    public void setDriverId(String driverId) 
    {
        this.driverId = driverId;
    }

    public String getDriverId() 
    {
        return driverId;
    }

    public void setOrderSource(String orderSource) 
    {
        this.orderSource = orderSource;
    }

    public String getOrderSource() 
    {
        return orderSource;
    }

    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }

    public void setUseTime(Date useTime) 
    {
        this.useTime = useTime;
    }

    public Date getUseTime() 
    {
        return useTime;
    }

    public void setPaymentTime(Date paymentTime) 
    {
        this.paymentTime = paymentTime;
    }

    public Date getPaymentTime() 
    {
        return paymentTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("orderId", getOrderId())
            .append("serviceName", getServiceName())
            .append("vehicleLevel", getVehicleLevel())
            .append("startAddress", getStartAddress())
            .append("endAddress", getEndAddress())
            .append("orderStatus", getOrderStatus())
            .append("orderAmount", getOrderAmount())
            .append("serviceDuration", getServiceDuration())
            .append("serviceMileage", getServiceMileage())
            .append("paymentMethod", getPaymentMethod())
            .append("bookingUserId", getBookingUserId())
            .append("passengerUserId", getPassengerUserId())
            .append("driverId", getDriverId())
            .append("orderSource", getOrderSource())
            .append("createdTime", getCreatedTime())
            .append("useTime", getUseTime())
            .append("paymentTime", getPaymentTime())
            .toString();
    }
}
